class AwInfoResp {
  List<AwCardInfo>? list;
  int? price;
  bool? hasBought;
  String? moduleID;
  String get vipDesc {
    if (list?.isNotEmpty == true) {
      return list!.map((e) => e.productName).toList().join('/');
    }
    return "";
  }

  AwInfoResp({this.list});
  static AwInfoResp fromJson(Map<String, dynamic>? map) {
    map ??= {};
    AwInfoResp model = AwInfoResp();
    if (map['list'] is List) {
      model.list = (map['list'] as List).map((e) => AwCardInfo.fromJson(e)).toList();
    }
    model.price = map['price'];
    model.hasBought = map['hasBought'];
    model.moduleID = map['moduleID'];
    return model;
  }
}

class AwCardInfo {
  String? id;
  String? productName;
  AwCardInfo.fromJson(dynamic json) {
    id = json['id'];
    productName = json['productName'];
  }
}
